#ifndef __PROFILE_H__
#define __PROFILE_H__

#include <stdint.h>
#include <stdbool.h>

#define  SOFT_AP

typedef struct
{
    uint16_t port;
    uint8_t device_id[12];
    uint8_t addr[64];
    uint8_t heartbeat_inteval;
    uint16_t location_upload_inteval;
    bool is_avilid;
}profile_s_t;


typedef union
{
    profile_s_t Struct;
    uint8_t Byte[sizeof(profile_s_t)];
}profile_t;

extern const profile_t default_profile;
extern profile_t local_profile;
extern profile_t* runtime_profile;
#endif